<template>
  <mt-header fixed title="乐淘商城购物">
    <a onclick="javescript:history.back()" slot="left" v-show="$route.path!=='/home'">
      <mt-button>返回</mt-button>
    </a>
    <mt-button slot="right" @click="handclick">搜索</mt-button>
  </mt-header>
</template>
<script>
export default {
  methods:{
    handclick(){
      this.$router.push({name:'Search'})
    }
  }
};
</script>
<style scoped>
</style>